package ztime

import (
	"strconv"
	"strings"
)

func TimeClock(text string) (hour, min, sec int) {
	list := strings.Split(text, ":")
	if len(list) >= 1 {
		hour, _ = strconv.Atoi(list[0])
	}
	if len(list) >= 2 {
		min, _ = strconv.Atoi(list[1])
	}
	if len(list) >= 3 {
		sec, _ = strconv.Atoi(list[2])
	}
	return
}
